package cn.exrick.xboot.modules.portalConfig.serviceimpl;

import cn.exrick.xboot.modules.portalConfig.dao.mapper.PortalConfigMapper;
import cn.exrick.xboot.modules.portalConfig.entity.PortalConfig;
import cn.exrick.xboot.modules.portalConfig.service.IPortalConfigService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import lombok.extern.slf4j.Slf4j;
import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.ArrayList;
import java.util.List;

/**
 * 资源配置表接口实现
 * @author Exrick
 */
@Slf4j
@Service
@Transactional
public class IPortalConfigServiceImpl extends ServiceImpl<PortalConfigMapper, PortalConfig> implements IPortalConfigService {

    @Autowired
    private PortalConfigMapper portalConfigMapper;

    /**
     * 20190731
     * njp
     * 根据key查询配置信息
     *
     */
    public PortalConfig selectPortalConfigByKey( @Param("config_key")String config_key){
        return portalConfigMapper.selectPortalConfigByKey(config_key);
    }
}